package cn.px.payments.jsapi.entity.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import java.io.Serializable;

@XmlRootElement(name = "xml")
public class RefundQueryReq implements Serializable {

    @JsonProperty("appid")
    @ApiModelProperty("微信分配的小程序ID")
    @XmlElement(name = "appid")
    private String appId;


    @JsonProperty("mch_id")
    @ApiModelProperty("微信支付分配的商户号")
    @XmlElement(name = "mch_id")
    private String mchId;


    @JsonProperty("nonce_str")
    @ApiModelProperty("随机字符串")
    @XmlElement(name = "nonce_str")
    private String nonceStr;

    @JsonProperty("sign")
    @ApiModelProperty("通过签名算法计算得出的签名值")
    @XmlElement(name = "sign")
    private String sign;


    @JsonProperty("transaction_id")
    @ApiModelProperty("微信订单号")
    @XmlElement(name = "transaction_id")
    private String transactionId;


    @JsonProperty("refund_id")
    @ApiModelProperty("微信退款单号")
    @XmlElement(name = "refund_id")
    private String refundId;


    @JsonProperty("out_refund_no")
    @ApiModelProperty("商户退款单号")
    @XmlElement(name = "out_refund_no")
    private String outRefundNo;


    @JsonProperty("out_trade_no")
    @ApiModelProperty("商户订单号")
    @XmlElement(name = "out_trade_no")
    private String outTradeNo;

    @XmlTransient
    public String getAppId() {
        return appId;
    }
    @XmlTransient
    public String getMchId() {
        return mchId;
    }
    @XmlTransient
    public String getNonceStr() {
        return nonceStr;
    }
    @XmlTransient
    public String getSign() {
        return sign;
    }
    @XmlTransient
    public String getTransactionId() {
        return transactionId;
    }
    @XmlTransient
    public String getRefundId() {
        return refundId;
    }
    @XmlTransient
    public String getOutRefundNo() {
        return outRefundNo;
    }
    @XmlTransient
    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public void setRefundId(String refundId) {
        this.refundId = refundId;
    }

    public void setOutRefundNo(String outRefundNo) {
        this.outRefundNo = outRefundNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }
}
